

//
//  FirstViewTableViewCell.m
//  1243
//
//  Created by apple on 16/7/18.
//  Copyright © 2016年 1243. All rights reserved.
//

#import "FirstViewTableViewCell.h"

@implementation FirstViewTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.backgroundColor = [UIColor whiteColor];
        
        UIView *grayView =[[UIView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, 10)];
        grayView.backgroundColor = [UIColor colorWithRed:230/255.0 green:230/255.0 blue:229/255.0 alpha:1];
        
        self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 15, 150, 30)];
        self.titleLabel.text = @"贵州毛球";
        
        
        self.moreBut = [UIButton buttonWithType:UIButtonTypeCustom];
        self.moreBut.frame = CGRectMake(WIDTH - 60, 15, 50, 30);
        [self.moreBut setImage:[UIImage imageNamed:@"icon_more"] forState:UIControlStateNormal];
        [self.moreBut addTarget:self action:@selector(moreButAction:) forControlEvents:UIControlEventTouchUpInside];
        
        
        self.picImg = [[UIImageView alloc]initWithFrame:CGRectMake(0, 50, WIDTH, 145)];
        self.picImg.backgroundColor = [UIColor yellowColor];
        
        [self.contentView addSubview:grayView];
        [self.contentView addSubview:self.titleLabel];
        [self.contentView addSubview:self.moreBut];
        [self.contentView addSubview:self.picImg];

    }
    return self;
}

- (void)moreButAction:(UIButton *)sender {
    if (self.jumpMoreBlock) {
        self.jumpMoreBlock();
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
